nasm -g -f obj -l example1.lst example1.asm
alink example1.obj -oPE -dll
pexports example1.dll > example1.def
dlltool -D example1.dll -d example1.def -l libexample1.a